<?php

namespace App\Models\client;

use App\Models\AdminModel;
use App\Models\airline\base\FlightModel;
use App\Models\airline\base\RouteModel;
use App\Models\base\CurrencyModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model as BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class PriceDetailModel extends BaseModel
{
    use HasFactory, SoftDeletes;

    protected $table = 't_eml_price_detail';

    protected $primaryKey = 'id';

    public $timestamps = true;

    const UPDATED_AT = null;


    //航线
    public function route(): BelongsTo {
        return $this->belongsTo(RouteModel::class, 'route_id');
    }

    //航班
    public function flight(): BelongsTo {
        return $this->belongsTo(FlightModel::class, 'flight_id');
    }




}
